<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS权重练习2</title>
    <style>
        /* 权重11 */
        .nav li {
            color: red;
        }

        /* 需求把第一个小li颜色改为粉色加粗 */
        /* 权重10 */
        /* .pink {
            color: pink;
            font-weight: 700;
        } */
        /* 权重20 */
        .nav .pink {
            color: pink;
            font-weight: 700;
        }
    </style>
</head>

<body>
    <ul class="nav">
        <li class="pink">悯农</li>
        <li>锄禾日当午</li>
        <li>汗滴禾下土</li>
        <li>谁知盘中餐</li>
        <li>粒粒皆辛苦</li>
    </ul>
</body>

</html>